<div ng-controller="PhpresourcesCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/phpresources/resource_data">{{'资源'| translate}}</a></li>
        <li class="active">
            编辑
        </li>
    </ul>
    <form name="storeForm" novalidate ng-submit="saveData()">
        <div class="control-group">
            <label class="control-label v-top">{{'控制器'|translate}}:</label>
            <div class="controls">
                <input ng-model="resource_data.controller" type="text" name="controller" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'控制器名称'|translate}}:</label>
            <div class="controls">
                <input ng-model="resource_data.cname" type="text" name="cname" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'方法'|translate}}:</label>
            <div class="controls">
                <input ng-model="resource_data.action" type="text" name="action" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'方法名称'|translate}}:</label>
            <div class="controls">
                <input ng-model="resource_data.aname" type="text" name="aname" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'卖家'|translate}}:</label>
            <div class="controls">
                <choice ng-model="resource_data.seller"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'买家'|translate}}:</label>
            <div class="controls">
                <choice ng-model="resource_data.buyer"></choice>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'注释'|translate}}:</label>
            <div class="controls">
                <textarea ng-model="resource_data.note" rows="20" name="note" class="input-xlarge"></textarea>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" class="sui-btn btn-primary">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>